package br.com.r1.observer;

import java.io.Serializable;
import java.util.Calendar;

public class Quote implements Serializable{

	private static final long serialVersionUID = 1L;
	private String company;
	private Calendar calendar;
	private Double price;
	
	public Quote(String company, Calendar calendar, Double price) {
		this.company = company;
		this.calendar = calendar;
		this.price = price;
	}
	
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public Calendar getCalendar() {
		return calendar;
	}
	public void setCalendar(Calendar calendar) {
		this.calendar = calendar;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "Quote [company=" + company + ", calendar=" + calendar.getTime()
				+ ", price=" + price + "]";
	}
	
	
}
